<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    
    <div id="app">
        <!-- 字符串 -->
        <h1>{{ name }}</h1>
        <p>{{halo() }}</p>
        <p>{{ a > b }}</p>
        <p>{{ a > b ?"呵呵":"vue 比大小" }}</p>
    </div>
        <script>
            var vue = new Vue({
                el:"#app",
                data: {
                    name:"halo 441",
                    a:1,
                    b:3
                },
                methods: {
                    halo() {
                        return "halo ...."
                    }
                }
            })
        </script>
</body>
</html>